 // 1.引入自定义组件
import Vue from "vue"
import navComp from "./nav"
import tabComp from "./tab"
import gapComp from "./gap"
// 2.重组自定义组件 方便循环注册
const autoComp = {
navComp,
tabComp,
gapComp
}
// 3.循环注册组件
for (let key in autoComp) {
Vue.component(key, autoComp[key])
}